<!DOCTYPE>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>模型管理</title>
    <link rel="stylesheet" href="../../../static/lib/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="../../../static/plugin/layer/skin/layer.css">
    <link rel="stylesheet" type="text/css" href="../../../static/css/dj-css.css">
    <link rel="stylesheet" type="text/css" href="../../../page/common/css/oa_system.css">

</head>
<body>
<div id="deptApp">

    <h2>模型管理</h2>
    <div class="main">
        <form class="layui-form layui-form-pane clearfix">
            <div class="layui-form-item fl">
                <div class="dj-select dj-select-inline type">
                    <label>请选择分类：</label>
                    <div class="dj-select-content">
                        <div class="dj-select-input" flag='true'>
                            <span class="dj-selected readOnly" type="text" name="" selectedCode='' style="height:40px;line-height:40px;" id="leave_type">全部分类</span>
                            <i></i>
                        </div>
                        <ul class="dj-select-list">
                            <li code="0">全部分类</li>
                            <li v-for="item in msgType" :code="item.code">{{item.name}}</li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="layui-form-pane fl">
                <button type="button" class="search" @click="lay">查询</button>
            </div>
            <div class="layui-form-pane fl">
                <button type="button" class="createFlow" @click="addModel">新建模型</button>
            </div>
        </form>
        <table class="" border="0" cellspacing="0" cellpadding="0">
            <thead>
            <tr>
                <th>流程分类</th>
                <th>模型ID</th>
                <th>模型标识</th>
                <th>模型名称</th>
                <th>版本号</th>
                <th>创建时间</th>
                <th>最后更新时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr v-for="(item,index) in deptLists"   >

                <td>{{item.category | typeFormat}}</td>
                <td v-text="item.id"></td>
                <td v-text="item.key"></td>
                <td v-text="item.name"></td>
                <td v-text="item.version"></td>
                <td>{{item.createTime | formatDate}}</td>
                <td>{{item.lastUpdateTime | formatDate}}</td>
                <td>
                    <div class="layui-btn-group flexBox">
                        <!--<a href="${pageContext.request.contextPath}/act/process-editor/modeler.jsp?modelId=${model.id}" target="_blank">编辑</a>-->
                        <!--<a href="${ctx}/act/model/deploy?id=${model.id}" onclick="return confirmx('确认要部署该模型吗？', this.href)">部署</a>-->
                        <!--<a href="${ctx}/act/model/export?id=${model.id}" target="_blank">导出</a>-->
                        <!--<a href="${ctx}/act/model/delete?id=${model.id}" onclick="return confirmx('确认要删除该模型吗？', this.href)">删除</a>-->
                        <button class="layui-btn "  @click="edit(item)">编辑</button>
                        <button class="layui-btn but-orange"  @click="deploy(item)">部署</button>
                        <button class="layui-btn "  @click="export1(item)">导出</button>
                        <button class="layui-btn but-orange"  @click="del(item)">删除</button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="layui-form-item clearfix footer">
            <div class="fl rowsPerPage ">
                每页显示 <input type="number" v-model="pageChange.pagesize">条，共 <span>{{pageChange.total}}</span>条
            </div>
            <div class="fl turnPage ">
                <span class="firstPage" @click="pageUpOrDown(1)">首页</span>
                <span class="prePage" @click="pageUpOrDown('prev')">上一页</span>
                <span class="selectPage"><input type="text" v-model="pageChange.current" value="1">/ <b>{{pageChange.pageNumber}}</b> </span>
                <span class="nextPage" @click="pageUpOrDown('next')">下一页</span>
                <span class="lastPage" @click="pageUpOrDown(pageChange.pageNumber)">末页</span>
                <span class="goPage" @click="lay">确认</span>
            </div>
        </div>
    </div>
</div>
<script src="../../../static/lib/jquery.min.js"></script>
<script src="../../../static/lib/layui/layui.js" charset="utf-8"></script>
<script src="../../../static/lib/vue.min.js"></script>
<script src="../../../static/lib/x-layui.js"></script>
<script src="../../../static/lib/dj-js.js"></script>
<script src="model.js"></script>
</body>
</html>